<html>
<head>
<title>random test</title>
<script type="text/javascript">
function cl( e){
	console.log(e);
}
function clj( e){
	console.log(JSON.stringify(e));
}
function json( e){
	return JSON.stringify(e);
}


var rules= {
	cellIDs : [
		'c00','c01','c02','c03','c04','c05','c06','c07','c08',
		'c09','c10','c11','c12','c13','c14','c15','c16','c17',
		'c18','c19','c20','c21','c22','c23','c24','c25','c26',
		'c27','c28','c29','c30','c31','c32','c33','c34','c35',
		'c36','c37','c38','c39','c40','c41','c42','c43','c44',
		'c45','c46','c47','c48','c49','c50','c51','c52','c53',
		'c54','c55','c56','c57','c58','c59','c60','c61','c62',
		'c63','c64','c65','c66','c67','c68','c69','c70','c71',
		'c72','c73','c74','c75','c76','c77','c78','c79','c80'],

	houses: {
		'hr0': ['c00','c01','c02','c03','c04','c05','c06','c07','c08'],
		'hr1': ['c09','c10','c11','c12','c13','c14','c15','c16','c17'],
		'hr2': ['c18','c19','c20','c21','c22','c23','c24','c25','c26'],
		'hr3': ['c27','c28','c29','c30','c31','c32','c33','c34','c35'],
		'hr4': ['c36','c37','c38','c39','c40','c41','c42','c43','c44'],
		'hr5': ['c45','c46','c47','c48','c49','c50','c51','c52','c53'],
		'hr6': ['c54','c55','c56','c57','c58','c59','c60','c61','c62'],
		'hr7': ['c63','c64','c65','c66','c67','c68','c69','c70','c71'],
		'hr8': ['c72','c73','c74','c75','c76','c77','c78','c79','c80'],
		'hc0': ['c00','c09','c18','c27','c36','c45','c54','c63','c72'],
		'hc1': ['c01','c10','c19','c28','c37','c46','c55','c64','c73'],
		'hc2': ['c02','c11','c20','c29','c38','c47','c56','c65','c74'],
		'hc3': ['c03','c12','c21','c30','c39','c48','c57','c66','c75'],
		'hc4': ['c04','c13','c22','c31','c40','c49','c58','c67','c76'],
		'hc5': ['c05','c14','c23','c32','c41','c50','c59','c68','c77'],
		'hc6': ['c06','c15','c24','c33','c42','c51','c60','c69','c78'],
		'hc7': ['c07','c16','c25','c34','c43','c52','c61','c70','c79'],
		'hc8': ['c08','c17','c26','c35','c44','c53','c62','c71','c80'],
		'hb0': ['c00','c01','c02','c09','c10','c11','c18','c20','c19'],
		'hb1': ['c03','c04','c05','c12','c13','c14','c21','c22','c23'],
		'hb2': ['c06','c07','c08','c15','c16','c17','c24','c25','c26'],
		'hb3': ['c27','c28','c29','c36','c37','c38','c45','c46','c47'],
		'hb4': ['c30','c31','c32','c39','c40','c41','c48','c49','c50'],
		'hb5': ['c33','c34','c35','c42','c43','c44','c51','c52','c53'],
		'hb6': ['c54','c55','c56','c63','c64','c65','c72','c73','c74'],
		'hb7': ['c57','c58','c59','c66','c67','c68','c75','c76','c77'],
		'hb8': ['c60','c61','c62','c69','c70','c71','c78','c79','c80']
	},
}

function test(){
	var ret={};

	rules.cellIDs.forEach(function(elem){
		ret[elem]=[];
		for( var house in rules.houses){
			if( rules.houses[house].indexOf(elem)>=0)
				ret[elem].push(house);
		}
	
	});
	return ret;
}



</script>
</head>
<body>


</body>
</html>